package cn.virens.common.spring.annotations;

import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor;
import org.springframework.beans.factory.InitializingBean;

@SuppressWarnings("serial")
public class VirAbstractMethodPointcutAdvisor extends AbstractBeanFactoryPointcutAdvisor implements InitializingBean {
    private VirAbstractMethodPointcut pointcut = new VirAbstractMethodPointcut();

    public void setAnnotationSource(VirAbstractAnnotationSource mVirAbstractAnnotationSource) {
        this.pointcut.setAnnotationSource(mVirAbstractAnnotationSource);
    }

    public void afterPropertiesSet() throws Exception {
        this.pointcut.afterPropertiesSet();
    }

    @Override
    public Pointcut getPointcut() {
        return pointcut;
    }

}
